function trainChooseSeat() { //高铁选座信息
	var seatObj = { //(选中为2，未选中为1)
		businessClass:{ //特等座或商务座
			"A":1,
			"C":1,
			"F":1,
		},
		firstClass:{ //一等座
			"A":1,
			"C":1,
			"D":1,
			"F":1,
		},
		secondClass:{ //二等座
			"A":1,
			"B":1,
			"C":1,
			"D":1,
			"F":1,
		},
	};
	this.seatObj = seatObj;
};

trainChooseSeat.prototype.filtrate = function(seatName) { //筛选函数 （传入座位信息）
	var resultSeat = {
		seatClassFirstRow : this.seatObj.secondClass,
	};
	switch(seatName) {
		case '商务座':
			resultSeat.seatClassFirstRow =  this.seatObj.businessClass;
			break;
		case '特等座':
			resultSeat.seatClassFirstRow =  this.seatObj.businessClass;
			break;
		case '一等座':
			resultSeat.seatClassFirstRow =  this.seatObj.firstClass;
			break;
		case '二等座':
			resultSeat.seatClassFirstRow =  this.seatObj.secondClass;
			break;
	};
	resultSeat.seatClassFirstRowBei = JSON.parse(JSON.stringify(resultSeat.seatClassFirstRow)); 
	resultSeat.seatClassSecondRow = JSON.parse(JSON.stringify(resultSeat.seatClassFirstRow)); 
	resultSeat.seatClassSecondRowBei = JSON.parse(JSON.stringify(resultSeat.seatClassFirstRow)); 
	return resultSeat;
};

export default new trainChooseSeat();
